//
//  ViewController.m
//  JKLocalization
//
//  Created by 王冲 on 2019/6/16.
//  Copyright © 2019 王冲. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@property(nonatomic,strong)  UIButton *button;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    
    NSString *btnName = [[NSBundle mainBundle] localizedStringForKey:@"begin" value:@"begin" table:@"JKLocalization"];
    // NSString *btnName = NSLocalizedStringFromTable(@"begin", @"JKLocalization", nil);
    // NSString *btnName = NSLocalizedString(@"begin", nil);
    // 英文 Cancel
    // 中文 取消
    UIButton *button = [[UIButton alloc]initWithFrame:CGRectMake(20, 100, [UIScreen mainScreen].bounds.size.width-40, 40)];
    [button setBackgroundColor: [UIColor brownColor]];
    [button setTitle:btnName forState:0];
    [self.view addSubview:button];
    
    self.button = button;
    
}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    
    
}


@end
